<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form onreset="down()">
        输入你的名字：<input type="">
        <input type="reset">
    </form>
    <script>
        function down(){
            alert("重置了")
        }
    </script>
</body>
</html>